﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="EditTicket.aspx.cs" Inherits="Admin_EditTicket" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <strong><span style="font-size: 16pt">Update TicketStatus<br />
    </span></strong>
    <asp:SqlDataSource ID="sdsTicketInfo" runat="server" 
        ConnectionString="<%$ ConnectionStrings:sqlString %>" 
        SelectCommand="SELECT * FROM [Airline_Ticket]"></asp:SqlDataSource>
    <asp:DataList ID="DataList1" runat="server" DataKeyField="TicketID" 
        DataSourceID="sdsTicketInfo">
        <ItemTemplate>
            TicketID:
            <asp:Label ID="TicketIDLabel" runat="server" Text='<%# Eval("TicketID") %>' />
            <br />
            FlightID:
            <asp:Label ID="FlightIDLabel" runat="server" Text='<%# Eval("FlightID") %>' />
            <br />
            TicketStatus:
            <asp:Label ID="TicketStatusLabel" runat="server" 
                Text='<%# Eval("TicketStatus") %>' />
            <br />
            BoughtDay:
            <asp:Label ID="BoughtDayLabel" runat="server" Text='<%# Eval("BoughtDay") %>' />
            <br />
            DiscountID:
            <asp:Label ID="DiscountIDLabel" runat="server" 
                Text='<%# Eval("DiscountID") %>' />
            <br />
            <br />
        </ItemTemplate>
    </asp:DataList>
    <br />
    Update Ticket Status :
    <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem>Buy</asp:ListItem>
        <asp:ListItem>Book</asp:ListItem>
        <asp:ListItem>Expired</asp:ListItem>
        <asp:ListItem>Cancel</asp:ListItem>
    </asp:DropDownList>
    <br />
    <asp:Button ID="btnUpdate" runat="server" onclick="btnUpdate_Click" 
        Text="Update" />
    <asp:Button ID="Button1" 
        runat="server" PostBackUrl="~/Admin/TicketList.aspx" Text="Cancel" />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server"></asp:Label>
</asp:Content>

